package org.example.directExchange;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author xuan
 * @create 2024/4/25
 */
@Component
public class MessageReceiver {
    @RabbitListener(queues = "test.queue")
    public void handleMessage(Object message) {
        System.out.println("Received message: " + message);
    }
}
